class Post < ActiveRecord::Base
  belongs_to :discussion
  acts_as_api

  validates :timestamp, :presence => true
  validates :body, :presence => true

  api_accessible :public do |template|
    template.add :timestamp
    template.add :body
  end
end
